package com.example.springbootdemo.elasticsearch;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @Author: ShengXiaJia`
 * @Date: 2020/2/28 16:39
 * @Description: 测试elasticsearch工具类
 */
@Document(indexName = "blog", type = "article")
@Data
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    private long id;

    private String title;

    private String summary;

    private String content;

    private int pv;

}
